package com.timmy.google_play.base;

import android.app.Application;
import android.content.Context;
import android.os.Handler;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Timmy on 2016/12/7.
 */

public class MyApplication extends Application {

    private static Context mContext;
    private static Handler mHandler;

    //定义缓存的存储结构
    private Map<String,String> mCacheMap = new HashMap<>();

    @Override
    public void onCreate() {
        super.onCreate();

        mContext = getApplicationContext();

        mHandler = new Handler();
    }

    public static Context getContext() {
        return mContext;
    }

    public static Handler getHandler() {
        return mHandler;
    }

    public Map<String, String> getCacheMap() {
        return mCacheMap;
    }
}
